
public class Location
{
	private int x;
	private int y;
	
	public Location()
	{
		x = -1;
		y = -1;
	}
	public Location(int x1, int y1)
	{
		x = x1;
		y = y1;
	}
	
	public void setLoc(int x1, int y1)
	{
		x = x1;
		y = y1;
	}
	public void setX(int x1)
	{
		x = x1;
	}
	public void setY(int y1)
	{
		y = y1;
	}
	public int getX()
	{
		return x;
	}
	public int getY()
	{
		return y;
	}
	
	public String toString()
	{
		return "x=" + x + ",y=" + y;
	}
	
}
